export{
    getCurrentTimeToMinute
}



// 获取当前时间（精确到分钟）
function getCurrentTimeToMinute() {
    const now = new Date();
    // 补零处理，保证十位显示
    const year = now.getFullYear();
    const month = String(now.getMonth() + 1).padStart(2, '0');
    const day = String(now.getDate()).padStart(2, '0');
    const hour = String(now.getHours()).padStart(2, '0');
    const minute = String(now.getMinutes()).padStart(2, '0');

    // 组合成 "YYYY-MM-DD HH:MM" 格式
    return `${year}-${month}-${day} ${hour}:${minute}`;
}